package com.xqboss.apps.domain.user;


import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.xqboss.apps.domain.BaseTable;
import com.xqboss.apps.enums.user.UserWalletEnum;
import com.xqboss.common.annotation.Excel;
import com.xqboss.common.core.domain.BaseEntity;
import lombok.Data;

import javax.persistence.Id;

/**
 * 用户钱包日志对象 sys_user_wallet_log
 *
 * @author xqboss
 * @date 2023-08-14
 */
@Data
public class SysUserWalletLog extends BaseTable {
    private static final long serialVersionUID = 1L;

    /**
     * 数据ID
     */
    @TableId
    @Id
    private Long id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 钱包ID
     */
    @Excel(name = "钱包ID")
    private Long walletId;

    /**
     * 钱包类型（1：现金钱包  2：热豆钱包）
     */
    @Excel(name = "钱包类型", readConverterExp = "1=：现金钱包,2=：热豆钱包")
    private UserWalletEnum type;

    /**
     * 余额（旧）
     */
    @Excel(name = "余额", readConverterExp = "旧=")
    private BigDecimal oldAmount;

    /**
     * 余额（新）
     */
    @Excel(name = "余额", readConverterExp = "新=")
    private BigDecimal newAmount;

    /**
     * 冻结金额（旧）
     */
    @Excel(name = "冻结金额", readConverterExp = "旧=")
    private BigDecimal oldFreeze;

    /**
     * 冻结金额（新）
     */
    @Excel(name = "冻结金额", readConverterExp = "新=")
    private BigDecimal newFreeze;

    /**
     * 提现中金额（旧）
     */
    @Excel(name = "提现中金额", readConverterExp = "旧=")
    private BigDecimal oldWithdraw;

    /**
     * 提现中金额（新）
     */
    @Excel(name = "提现中金额", readConverterExp = "新=")
    private BigDecimal newWithdraw;

    @Excel(name = "备注")
    private String remark;

}